#include<iostream>
using namespace std;
int main()
{
	int i;
	
	for (int i = 1; i <= 11; i++)
	{
		cout << "M";
	}
	
		cout << "\n ";
		for (int i = 1; i <= 9; i++)
		{
			cout << "M";
		}
		cout << "\n ";
		for (int i = 1; i <= 1; i++)
		{
			cout << " ";
		}
		for (int i = 1; i <= 7; i++)
		{
			cout << "M";
		}
		cout << "\n ";
		for (int i = 1; i <= 2; i++)
		{
			cout << " ";
		}
		for (int i = 1; i <= 5; i++)
		{
			cout << "M";
		}
		cout << "\n ";
		for (int i = 1; i <= 3; i++)
		{
			cout << " ";
		}
		for (int i = 1; i <= 3; i++)
		{
			cout << "M";
		}
		cout << "\n ";
		for (int i = 1; i <= 4; i++)
		{
			cout << " ";
		}
		for (int i = 1; i <= 1; i++)
		{
			cout << "M";
		}
		cout << "\n ";



}